import { SEntityId } from "../../../../../Message/Public/SEntityId";
import { EntityUtil } from "../../../scene/layer/utils/EntityUtil";
import { Cache } from "../../../cache/Cache";
type int = number;
//class EatBeansRoleType
    
    export  class EatBeansRoleType
    {
        

        public static getRoleType(arg1: SEntityId): int
        {
            if (EntityUtil.toString(arg1) == EntityUtil.toString(Cache.instance.role.entityInfo.entityId)) 
            {
                return EatBeansRoleType.Self;
            }
            var loc1=Cache.instance.eatBeans.getRoleID(Cache.instance.role.entityInfo.entityId);
            var loc2=Cache.instance.eatBeans.getRoleID(arg1);
            if (loc1 == loc2) 
            {
                return EatBeansRoleType.Friends;
            }
            return EatBeansRoleType.Enemy;
        }

        public static /* const */Self: int=0;

        public static /* const */Friends: int=1;

        public static /* const */Enemy: int=2;
    }
